<template>
    <div ref="iframeCnt" class="com-cnt"></div>
</template>

<script>
    import { domain } from '@/assets/js/config'
    export default {
        name: 'jhsPage',
        mounted ( ) {
            var iframe = document.createElement('iframe')
            const url = domain + '/xshk/f/commodity?classifySearchId=2'
            var path = url + '&rand=' + new Date().getTime()
            iframe.setAttribute('src', path)
            iframe.setAttribute('style','width:100%;height:100%;')
            this.$refs.iframeCnt.appendChild(iframe)
        }        
    }
</script>

<style lang="stylus" scoped>
.com-cnt
    width 100%
    height 100%
</style>